﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.master" AutoEventWireup="true" Inherits="Student_EditStudentInfo" Codebehind="EditStudentInfo.aspx.cs" EnableEventValidation="true" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<style type="text/css">

ul
{
width: 600px;
list-style-type: none;
margin: 0px;
padding: 0px;
}
li
{
float: left;
margin: 0px;
padding: 0px;
width: 300px;
}
li div
{
width:250px;
height: 30px;
text-align: left;
margin: 0px;
}
       
 </style>

<script type="text/javascript" language="javascript">


  function ShowHyperlink() {

        var hyperlink = document.getElementById("ctl00_ContentPlaceHolder1_divLabel");
        
        hyperlink.style.display = 'block';
    }

    function HideHyperlink() {

        var hyperlink = document.getElementById("ctl00_ContentPlaceHolder1_divLabel");
        hyperlink.style.display = 'none';
    }


</script>
<div class="addstudent_container">
   <table cellpadding="0" cellspacing="0" border="0" width="100%">
      <tr>
        <td class="viewformtab_top">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
         <td class="viewformtab_content" align="right">
         <div style="z-index:999; width:210px;" align="right">
            <asp:TreeView ID="TreeView1" ExpandDepth="0" runat="server" ShowLines="false" 
                LineImagesFolder="~/TreeLineImages" 
                onselectednodechanged="TreeView1_SelectedNodeChanged">
               <RootNodeStyle CssClass="" />
               <LeafNodeStyle CssClass="viewformtab_leaf" />
               <ParentNodeStyle CssClass="" />
               <HoverNodeStyle CssClass="viewformtab" />
               <SelectedNodeStyle CssClass="viewformtab_select" />
               <NodeStyle CssClass="" />
           </asp:TreeView></div>
           <asp:HiddenField ID="hdnCatId" runat="server" />
           <asp:HiddenField ID="hdnInitialCatId" runat="server" />
            <asp:HiddenField ID="hdnStudentId" runat="server" />
         </td>
          <td style="padding:10px;" valign="top" class="addstudent_content">
                <table width="100%" cellpadding="0" cellspacing="0" >
                    <tr>
                        <td align="left" valign="top">
                            <table id="dTable" runat="server" border="0" cellpadding="0" cellspacing="0">
                            </table>
                            
                            <asp:PlaceHolder ID="phAllFieldHolder" runat="server"></asp:PlaceHolder>
                             <asp:HiddenField ID="hdnStdFieldID" runat="server" />
                        </td>
                        <td align="center" valign="top" style="padding-top:30px;">
                            <div style="background-image:url(../App_Themes/main/images/bevel_horline.png); background-repeat:repeat-x; background-position:left top; padding-top:10px; padding-left:5px;">
                            <div class="img_placeholder" id="divOuter" runat="server">
                                <div class="img_padding2" id="divPhotoUpload" runat="server" onmouseover="ShowHyperlink();"
                                    onmouseout="HideHyperlink();" style="background-image: url('../App_Themes/main/images/no_pic.png');
                                    background-repeat: no-repeat; background-position: center; width:125px; height:125px;">
                                    <%--  <img name="" src="../App_Themes/main/images/no_pic.png" id="imgStudentPhoto" runat="server" width="107" height="115"/>--%>
                                    <a href='PhotoUpload.aspx' rel="lyteframe" style="cursor: pointer;" target="_blank"
                                        rev="width: 620px; height: 510px; scrolling: no; border:0px; margin:0px; top:0px;">
                                        <div style="text-align: center; background-color: #fff; height: 15px; padding: 8px 3px 8px 3px;
                                            display: none; filter: alpha(opacity=70);" id="divLabel" runat="server">
                                            <asp:Label ID="lblUploadPhoto" CssClass="darkblue" runat="server" 
                                                Style="z-index: 99999;"></asp:Label>
                                        </div>
                                    </a>
                                </div>
                            </div>
                            
                         </div>
                         
                         <table width="100%" id="TMInfo" runat="server" border="0" cellpadding="0" cellspacing="0" align="left">
                                <tr>
                                    <td align="left">
                                    
                                    <div class="blue_bold">Medical Information</div>
                                    <div class="bevel_horline"></div>
                                    <div class="clear"></div>
                                         <ul id="ul1">
                                            <asp:Repeater ID="rptMedicalInfo"  runat="server" OnItemDataBound="rptMedicalInfo_ItemDataBound">
                                                            <ItemTemplate>
                                                                <li itemid='<%#Eval("FieldId") %>' def_cus='<%#Eval("Default_Custom") %>' id="li" runat="server">
                                                                    <div id="div" align="left" runat="server">
                                                                    
                                                                        <table align="left" cellpadding="2" cellspacing="0" border="0" width="100%">
                                                                            <tr>
                                                                                <td valign="top" align="left">
                                                                                    <div style="width: 130px">
                                                                                        <%# Eval("FieldName")%>
                                                                                    </div>
                                                                                </td>
                                                                                <td  valign="top" class="colon" >
                                                                                    :
                                                                                </td>
                                                                                <td valign="top" style="width: 130px" align="right">
                                                                                   <div id="maindiv" runat="server">
                                                                                   </div>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <asp:HiddenField ID="hdnFieldType" runat="server" Value='<%#Eval("FieldType") %>' />
                                                                    <asp:HiddenField ID="hdnFieldId" runat="server" Value='<%#Eval("FieldId") %>' />
                                                                    <asp:HiddenField ID="hdnDefCus" runat="server" Value='<%#Eval("Default_Custom") %>' />
                                                                </li>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                         </ul>
                                      
                                    </td>
                                </tr>
                                <tr>
                                   <td>
                                    <div class="clear"></div>
                                      <table width="100%" cellpadding="0" cellspacing="0"><tr><td class="blue_bold" align="left">Immunization/Physical Record</td><td align="right"><asp:ImageButton ID="btnImmuAdd" CausesValidation="false" runat="server" ToolTip="Immunization" Visible="false" ImageUrl="~/App_Themes/main/images/add.png" OnClick="btnImmuAdd_Click" />
                                       <asp:ImageButton ID="imgbtnImmuEdit"  ImageUrl="~/App_Themes/main/images/edit.png" runat="server" CausesValidation="false" OnClick ="imgbtnImmuEdit_Click" Visible="false" />
                                      </td></tr></table>
                                      
                                    <div class="bevel_horline"></div>
                                    <div class="clear"></div>
                                    
                                     <asp:GridView ID="GVImmunization" runat="server" HeaderStyle-CssClass="grid_header" Width="100%" RowStyle-CssClass="grid_row" AlternatingRowStyle-CssClass="grid_altrow" AutoGenerateColumns ="false" OnRowDataBound ="GVImmunization_RowDataBound"
                                     OnRowCancelingEdit="GVImmunization_RowCancelingEdit" OnRowEditing="GVImmunization_RowEditing" OnRowUpdating="GVImmunization_RowUpdating" BorderWidth="0" CellPadding="0" CellSpacing="0">
                                                   <Columns >
                                                   
                                                   <asp:TemplateField >
                                                      <ItemTemplate>
                                                        <%--<asp:CheckBox ID="chkGVImmunization" runat="server" />--%>
                                                      </ItemTemplate>
                                                   </asp:TemplateField>
                                                   
                                                      <asp:TemplateField HeaderText="Immunization Type" >
                                                         <ItemTemplate>
                                                          <asp:Label ID="lblImmunizationType" runat="server" Text='<%#Eval("Type")%>'></asp:Label>
                                                           
                                                         </ItemTemplate>
                                                         <EditItemTemplate>
                                                         <asp:DropDownList ID="ddlImmunaizationTypeEdit" runat="server" >
                                                           <asp:ListItem Value="0" >Select</asp:ListItem>
                                                           <asp:ListItem Value="1" >Imunization</asp:ListItem>
                                                           <asp:ListItem Value="2" >Physical</asp:ListItem>
                                                           </asp:DropDownList>
                                                           <asp:HiddenField ID="hdnImmunizationType"  runat="server" Value='<%#Eval("Type")%>'/>
                                                         </EditItemTemplate>
                                                      </asp:TemplateField>
                                                       <asp:TemplateField HeaderText="Date">
                                                         <ItemTemplate>
                                                            <asp:Label ID="lblDateGVImmunization" runat="server" Text='<%#Eval("Date")%>'></asp:Label>
                                                           
                                                         </ItemTemplate>
                                                          <EditItemTemplate>
                                                           <asp:TextBox ID="txtDateGVImmunization"  CssClass="textbox_date" runat="server" Text='<%#Eval("Date")%>'></asp:TextBox>      
                                              <asp:ImageButton ID="calImgImmuEdit" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Date" runat="server" meta:resourcekey="calImgImmuEdit"/>
                                   <cc1:CalendarExtender ID="CalImmunizationDateEdit" runat="server" PopupButtonID="calImgImmuEdit" TargetControlID="txtDateGVImmunization"  />
                                                         </EditItemTemplate>
                                                      </asp:TemplateField>
                                                      <asp:TemplateField HeaderText="Comments" >
                                                         <ItemTemplate>
                                                           <asp:Label ID="lblCommentsGVImmunization" runat="server" Text='<%#Eval("Comment")%>'></asp:Label>
                                                         
                                                         </ItemTemplate>
                                                         <EditItemTemplate>
                                                          <asp:TextBox ID="txtCommentsGVImmunization"  runat="server" Text='<%#Eval("Comment")%>'></asp:TextBox>
                                                         </EditItemTemplate>
                                                      </asp:TemplateField>
                                                            <asp:CommandField ShowEditButton="true" ButtonType="Image" CancelImageUrl="~/App_Themes/main/images/icon_delete.png"
                                EditImageUrl="~/App_Themes/main/images/icon_edit.png" UpdateImageUrl="~/App_Themes/main/images/icon_active.png"
                                HeaderText="Action" CausesValidation="false">
                                <ItemStyle />
                            </asp:CommandField>
                                                   </Columns>

                                                 </asp:GridView>
                                  
                                     <asp:Panel ID="panel_Immunization" runat="server" Style="display: none" CssClass="ModalPopup"
                Width="600">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">
                            &nbsp;
                        </td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header">
                                Immunization/Physical Record</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">
                            &nbsp;
                        </td>
                        <td class="modal_bg">
                            <div style="overflow: auto; overflow-x: hidden; width: 540px; max-height: 332px;">
                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td>
                                           Immunization Type:
                                        </td>
                                        <td>
                                           <asp:DropDownList ID="ddlImmunaization" runat="server" >
                                           <asp:ListItem Value="0" >Select</asp:ListItem>
                                           <asp:ListItem Value="1" >Imunization</asp:ListItem>
                                           <asp:ListItem Value="2" >Physical</asp:ListItem>
                                           
                                           </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                       <td>
                                          Date:
                                       </td>
                                       <td>
                                         <asp:TextBox ID="txtdate" runat="server" ></asp:TextBox>
                                          <asp:ImageButton ID="calImgImmuDate" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Date" runat="server" meta:resourcekey="calImgImmuDate"/>
                                   <cc1:CalendarExtender ID="CalImmuDate" runat="server" PopupButtonID="calImgImmuDate" TargetControlID="txtdate"  />
                                       </td>
                                    </tr>
                                    <tr>
                                       <td>
                                         Comments
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtcomments" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="separator_hor">
                            </div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnImmuSave" CssClass="modalbtn_active" runat="server" Text="Save" OnClick="btnImmuSave_Click" />
                                        <asp:Button ID="btnImmuCancel" CausesValidation="false" runat="server" Text="Cancel"
                                            CssClass="modalbtn_active" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender2')" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                </table>
            </asp:Panel>   
            
                                     <asp:Panel ID="panel_ImmunizationEdit" runat="server" Style="display: none" CssClass="ModalPopup"
                Width="600">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">
                            &nbsp;
                        </td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header">
                                Immunization/Physical Record</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">
                            &nbsp;
                        </td>
                        <td class="modal_bg">
                            <div style="overflow: auto; overflow-x: hidden; width: 540px; max-height: 332px;">
                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td>
                                           Immunization Type:
                                        </td>
                                        <td>
                                           <asp:DropDownList ID="ddlImmunaizationEdit" runat="server" >
                                           <asp:ListItem Value="0" >Select</asp:ListItem>
                                           <asp:ListItem Value="1" >Imunization</asp:ListItem>
                                           <asp:ListItem Value="2" >Physical</asp:ListItem>
                                           
                                           </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                       <td>
                                          Date:
                                       </td>
                                       <td>
                                         <asp:TextBox ID="txtdateEdit" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                    <tr>
                                       <td>
                                         Comments
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtcommentsEdit" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="separator_hor">
                            </div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnImmuUpdate" CssClass="modalbtn_active" runat="server" Text="Save" OnClick="btnImmuUpdate_Click" />
                                        <asp:Button ID="btnImmuCancelEdit" CausesValidation="false" runat="server" Text="Cancel" CssClass="modalbtn_active" OnClick="btnImmuCancelEdit_Click" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender1')" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                </table>
            </asp:Panel>            
             
            <cc1:modalpopupextender ID="ModalPopupExtender2" runat="server" BackgroundCssClass="Inactive"
                        TargetControlID="btnImmuAdd" PopupControlID="panel_Immunization" Enabled="false" /> 
            <cc1:modalpopupextender ID="ModalPopupExtender1" runat="server" BackgroundCssClass="Inactive" TargetControlID="imgbtnImmuEdit" PopupControlID="panel_ImmunizationEdit" Enabled="false" /> 
                        
                            </td>
                                </tr>  
                                <tr>
                                   <td>
                                   <div class="clear"></div>
                                     
                                      <table width="100%" cellpadding="0" cellspacing="0"><tr><td class="blue_bold" align="left">Medical Alert</td><td align="right"><asp:ImageButton ID="ibtnAlertAdd" CausesValidation="false" runat="server" ToolTip="Alert" Visible="false" ImageUrl="~/App_Themes/main/images/add.png" OnClick="ibtnAlertAdd_Click" />
                       
                         <asp:ImageButton ID="ibtnAlertEdit" ImageUrl="~/App_Themes/main/images/edit.png" runat="server" CausesValidation="false" Visible="false" OnClick ="ibtnAlertEdit_Click" />
                       </td></tr></table>
                                      
                                    <div class="bevel_horline"></div>
                                    <div class="clear"></div> 
                                  
                                  <asp:GridView ID="GVMedicalAlert" runat="server" HeaderStyle-CssClass="grid_header" 
                                           AutoGenerateColumns ="false" Width="100%" RowStyle-CssClass="grid_row" 
                                           CallbackCssStyle="ClsCallBackStyle" OnRowCancelingEdit="GVMedicalAlert_RowCancelingEdit" OnRowEditing="GVMedicalAlert_RowEditing" OnRowUpdating="GVMedicalAlert_RowUpdating"
                                           AlternatingRowStyle-CssClass="grid_altrow" CellPadding="0" CellSpacing="0" BorderWidth="0">
<RowStyle CssClass="grid_row"></RowStyle>
                                                   <Columns >
                                                   <asp:TemplateField >
                                                      <ItemTemplate>
                                                      <%--  <asp:CheckBox ID="chkGVMedicalAlert" runat="server" />--%>
                                                      </ItemTemplate>
                                                   </asp:TemplateField>
                                                      <asp:TemplateField HeaderText="Medical Alert" >
                                                         <ItemTemplate >
                                                            <asp:Label ID="lblMedicalalert" runat="server" Text='<%# Bind("Alert")%>'></asp:Label>
                                                         </ItemTemplate>
                                                         <EditItemTemplate>
                                                         <asp:TextBox ID="txtMedicalAlert" TextMode="MultiLine" CausesValidation="false"  CssClass="textarea" runat="server" Text='<%# Bind("Alert")%> '></asp:TextBox>
                                                         </EditItemTemplate>
                                                      </asp:TemplateField>
                                                      <asp:CommandField ShowEditButton="true" ButtonType="Image" CancelImageUrl="~/App_Themes/main/images/icon_delete.png"
                                EditImageUrl="~/App_Themes/main/images/icon_edit.png" UpdateImageUrl="~/App_Themes/main/images/icon_active.png"
                                HeaderText="Action" CausesValidation="false">
                                <ItemStyle />
                            </asp:CommandField>
                                                   </Columns>

                                                 </asp:GridView>
                        
                        <asp:Panel ID="panel_MedicalAlert" runat="server" Style="display: none" CssClass="ModalPopup" Width="600">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">
                            &nbsp;
                        </td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header">
                                Medical Alert</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">
                            &nbsp;
                        </td>
                        <td class="modal_bg">
                            <div style="overflow: auto; overflow-x: hidden; width: 540px; max-height: 332px;">
                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                   
                                    <tr>
                                       <td>
                                         Alerts:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtAlerts" runat="server" MaxLength="25"></asp:TextBox>
                                       </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="separator_hor">
                            </div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnAlertSave" CssClass="modalbtn_active" runat="server" Text="Save" OnClick="btnAlertSave_Click" />
                                        <asp:Button ID="btnAlertcancel" CausesValidation="false" runat="server" Text="Cancel"
                                            CssClass="modalbtn_active" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender3')" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                </table>
            </asp:Panel>
            
                        <asp:Panel ID="panel_MedicalAlertEdit" runat="server" Style="display: none" CssClass="ModalPopup" Width="600">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">
                            &nbsp;
                        </td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header">
                                Medical Alert</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">
                            &nbsp;
                        </td>
                        <td class="modal_bg">
                            <div style="overflow: auto; overflow-x: hidden; width: 540px; max-height: 332px;">
                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                   
                                    <tr>
                                       <td>
                                         Alerts:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtAlertsEdit" runat="server" MaxLength="25"></asp:TextBox>
                                       </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="separator_hor">
                            </div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnAlertUpdate" CssClass="modalbtn_active" runat="server" Text="Save" OnClick="btnAlertUpdate_Click" />
                                        <asp:Button ID="btnAlertcancelEdit" CausesValidation="false" runat="server" Text="Cancel" CssClass="modalbtn_active" OnClick="btnAlertcancelEdit_Click" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender6')" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                </table>
            </asp:Panel>
            
             <cc1:modalpopupextender ID="ModalPopupExtender3" runat="server" BackgroundCssClass="Inactive"
                        TargetControlID="ibtnAlertAdd" PopupControlID="panel_MedicalAlert" Enabled="false" /> 
             <cc1:modalpopupextender ID="ModalPopupExtender6" runat="server" BackgroundCssClass="Inactive" TargetControlID="ibtnAlertEdit" PopupControlID="panel_MedicalAlertEdit" Enabled="false" /> 
                        
                         </td>
                                </tr>
                                 <tr>
                                   <td> 
                                   <div class="clear"></div>
                                    <table width="100%" cellpadding="0" cellspacing="0"><tr><td class="blue_bold" align="left">Nurse Visit Record</td><td align="right"><asp:ImageButton ID="ibtnNursevisitAdd" CausesValidation="false" runat="server" ToolTip="Nurse Visit" Visible="false"  ImageUrl="~/App_Themes/main/images/add.png" OnClick="ibtnNursevisitAdd_Click" />
                            <asp:ImageButton ID="ibtnNursevisitEdit" ImageUrl="~/App_Themes/main/images/edit.png" runat="server" CausesValidation="false" Visible="false" OnClick ="ibtnNursevisitEdit_Click" />
                            </td></tr></table>
                                      
                                    <div class="bevel_horline"></div>
                                    <div class="clear"></div> 
                         
                         <asp:GridView ID="GVNurseVisitRec" HeaderStyle-CssClass="grid_header" runat="server" AutoGenerateColumns ="false" Width="100%" RowStyle-CssClass="grid_row" CallbackCssStyle="ClsCallBackStyle" AlternatingRowStyle-CssClass="grid_altrow" CellPadding="0" CellSpacing="0" BorderWidth="0" OnRowCancelingEdit="GVNurseVisitRec_RowCancelingEdit" OnRowEditing="GVNurseVisitRec_RowEditing" OnRowUpdating="GVNurseVisitRec_RowUpdating">
                                                   <Columns >
                                                   <asp:TemplateField >
                                                      <ItemTemplate>
                                                       <%-- <asp:CheckBox ID="chkGVNurseVisitRec" runat="server" />--%>
                                                      </ItemTemplate>
                                                   </asp:TemplateField>
                                                   
                                                      <asp:TemplateField HeaderText="Date" >
                                                         <ItemTemplate>
                                                           
                                                           <asp:Label ID="lblNVRDateEdit"  runat="server" Text='<%#Eval("Date")%>'></asp:Label>
                                                         </ItemTemplate>
                                                         <EditItemTemplate>
                                                         <asp:TextBox ID="txtNVRDateEdit" CssClass="textbox_date"   runat="server" Text='<%#Eval("Date")%>'></asp:TextBox>
                                                         <asp:ImageButton ID="calImgNVREdit" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Date" runat="server" meta:resourcekey="calImgNVREdit"/>
                                   <cc1:CalendarExtender ID="CalNVRDateEdit" runat="server" PopupButtonID="calImgNVREdit" TargetControlID="txtNVRDateEdit"  />
                                                         </EditItemTemplate>
                                                      </asp:TemplateField>
                                                      
                                                      <asp:TemplateField HeaderText="Time In" >
                                                         <ItemTemplate>
                                                             <asp:Label ID="lblNVRTimeInEdit"  runat="server" Text='<%#Eval("TimeIn")%>'></asp:Label>
                                                            
                                                         </ItemTemplate>
                                                         <EditItemTemplate>
                                                         <asp:TextBox ID="txtNVRTimeInEdit"   CssClass="textbox_date" runat="server" Text='<%#Eval("TimeIn")%>'></asp:TextBox>
                                                         </EditItemTemplate>
                                                      </asp:TemplateField>
                                                      
                                                      <asp:TemplateField HeaderText="Time Out" >
                                                         <ItemTemplate>
                                                          
                                                          <asp:Label ID="lblNVRTimeOutEdit" runat="server" Text='<%#Eval("TimeOut")%>'></asp:Label>
                                                         </ItemTemplate>
                                                         <EditItemTemplate>
                                                         <asp:TextBox ID="txtNVRTimeOutEdit"   CssClass="textbox_date" runat="server" Text='<%#Eval("TimeOut")%>'></asp:TextBox>
                                                         </EditItemTemplate>
                                                      </asp:TemplateField>
                                                      
                                                      <asp:TemplateField HeaderText="Reason" >
                                                         <ItemTemplate>
                                                          <asp:Label ID="lblNVRreasonEdit" runat="server" Text='<%#Eval("Reason")%>'></asp:Label>
                                                          
                                                         </ItemTemplate>
                                                         <EditItemTemplate>
                                                         <asp:TextBox ID="txtNVRreasonEdit"   CssClass="textbox_date" runat="server" Text='<%#Eval("Reason")%>'></asp:TextBox>
                                                         </EditItemTemplate>
                                                      </asp:TemplateField>
                                                      
                                                      <asp:TemplateField HeaderText="Result" >
                                                         <ItemTemplate>
                                                          <asp:Label ID="lblNVRResultEdit" runat="server" Text='<%#Eval("Result")%>'></asp:Label>
                                                          
                                                         </ItemTemplate>
                                                         <EditItemTemplate>
                                                         <asp:TextBox ID="txtNVRResultEdit"   CssClass="textbox_date" runat="server" Text='<%#Eval("Result")%>'></asp:TextBox>
                                                         </EditItemTemplate>
                                                      </asp:TemplateField>
                                                      
                                                      <asp:TemplateField HeaderText="Comments" >
                                                         <ItemTemplate>
                                                          
                                                          <asp:Label ID="lblNVRComments" runat="server" Text='<%#Eval("Comments")%>'></asp:Label>
                                                         </ItemTemplate>
                                                         <EditItemTemplate>
                                                         <asp:TextBox ID="txtNVRComments"   CssClass="textbox_date" runat="server" Text='<%#Eval("Comments")%>'></asp:TextBox>
                                                         </EditItemTemplate>
                                                      </asp:TemplateField>
                                                        <asp:CommandField ShowEditButton="true" ButtonType="Image" CancelImageUrl="~/App_Themes/main/images/icon_delete.png"
                                EditImageUrl="~/App_Themes/main/images/icon_edit.png" UpdateImageUrl="~/App_Themes/main/images/icon_active.png"
                                HeaderText="Action" CausesValidation="false">
                                <ItemStyle />
                            </asp:CommandField>
                                                   </Columns>
                                                    
                                                 </asp:GridView>
                        
                        <asp:Panel ID="panel_NurseVisit" runat="server" Style="display: none" CssClass="ModalPopup" Width="600">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">
                            &nbsp;
                        </td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header">
                                Nurse Visit Record</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">
                            &nbsp;
                        </td>
                        <td class="modal_bg">
                            <div style="overflow: auto; overflow-x: hidden; width: 540px; max-height: 332px;">
                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                   
                                    <tr>
                                       <td>
                                        Date:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtNurseVisitDate" runat="server" ></asp:TextBox>
                                            <asp:ImageButton ID="calImgNurseVisit" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Date" runat="server" meta:resourcekey="calImgNurseVisit"/>
                                   <cc1:CalendarExtender ID="CalNurseVisitDate" runat="server" PopupButtonID="calImgNurseVisit" TargetControlID="txtNurseVisitDate"  />
                                       </td>
                                    </tr>
                                     <tr>
                                       <td>
                                        Time In:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtTimeIn" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                      <tr>
                                       <td>
                                        Time Out:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtTimeOut" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                     <tr>
                                       <td>
                                        Reason:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtReason" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                    <tr>
                                       <td>
                                        Result:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtResult" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                    <tr>
                                       <td>
                                        Comments:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtNurseComments" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="separator_hor">
                            </div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnNurseVisitSave" CssClass="modalbtn_active" runat="server" Text="Save" OnClick="btnNurseVisitSave_Click" />
                                        <asp:Button ID="btnNurseVisitCancel" CausesValidation="false" runat="server" Text="Cancel"
                                            CssClass="modalbtn_active" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender4')" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                </table>
            </asp:Panel>
            
            <asp:Panel ID="panel_NurseVisitEdit" runat="server" Style="display: none" CssClass="ModalPopup" Width="600">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">
                            &nbsp;
                        </td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header">
                                Nurse Visit Record</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">
                            &nbsp;
                        </td>
                        <td class="modal_bg">
                            <div style="overflow: auto; overflow-x: hidden; width: 540px; max-height: 332px;">
                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                   
                                    <tr>
                                       <td>
                                        Date:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtNurseVisitDateEdit" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                     <tr>
                                       <td>
                                        Time In:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtTimeInEdit" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                      <tr>
                                       <td>
                                        Time Out:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtTimeOutEdit" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                     <tr>
                                       <td>
                                        Reason:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtReasonEdit" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                    <tr>
                                       <td>
                                        Result:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtResultEdit" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                    <tr>
                                       <td>
                                        Comments:
                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtNurseCommentsEdit" runat="server" ></asp:TextBox>
                                       </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="separator_hor">
                            </div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnNurseVisitUpdate" CssClass="modalbtn_active" runat="server" Text="Save" OnClick="btnNurseVisitUpdate_Click" />
                                        <asp:Button ID="btnNurseVisitCancelEdit" CausesValidation="false" runat="server" Text="Cancel" CssClass="modalbtn_active" OnClick="btnNurseVisitCancelEdit_Click" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender7')" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                </table>
            </asp:Panel>
            
          <cc1:modalpopupextender ID="ModalPopupExtender4" runat="server" BackgroundCssClass="Inactive"
                        TargetControlID="ibtnNursevisitAdd" PopupControlID="panel_NurseVisit" Enabled="false" /> 
           <cc1:modalpopupextender ID="ModalPopupExtender7" runat="server" BackgroundCssClass="Inactive"
                        TargetControlID="ibtnNursevisitEdit" PopupControlID="panel_NurseVisitEdit" Enabled="false" />               
                         </td>
                                </tr>
                                <tr>
                                   <td align="left">
                                   <div class="clear"></div>
                                   <table width="100%" cellpadding="0" cellspacing="0"><tr><td class="blue_bold" align="left">Vaccination Record</td><td align="right"><asp:ImageButton ID="ibtnVace" CausesValidation="false" runat="server" ToolTip="Vaccination" Visible="false" ImageUrl="~/App_Themes/main/images/add.png" OnClick="ibtnVace_Click" />
                   
                    <asp:ImageButton ID="ibtnVaceEdit" ImageUrl="~/App_Themes/main/images/edit.png" runat="server" CausesValidation="false" OnClick="ibtnVaceEdit_Click" Visible="false" />
                   </td></tr></table>
                                      
                                    <div class="bevel_horline"></div>
                                    <div class="clear"></div>
                                      
                                      
                                      <ul id="ul8">
                                            <asp:Repeater ID="rptrVccination"  runat="server" OnItemDataBound="rptrVccination_ItemDataBound">
                                                            <ItemTemplate>
                                                                <li itemid='<%#Eval("FieldId") %>'  id="li" runat="server">
                                                                    <div id="div" align="left" runat="server">
                                                                    
                                                                        <table align="left" cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                            <tr>
                                                                                <td valign="top" align="left">
                                                                                    <div style="width: 130px" class='blue_bold'>
                                      <asp:Label ID="lblfldnam" runat="server"  ></asp:Label>                                            
                                                                                    </div>
                                                                                </td>
                                                                                <td  valign="top" class="colon">
                                                                                    :
                                                                                </td>
                                                                                <td valign="top" style="width: 130px" align="right">
                                                                            <%-- <%# Eval("Value")%> --%>     
                                                                            <div id="maindivgift" runat="server">
                                                                                   </div>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                   
                                                                    <asp:HiddenField ID="hdnFieldId" runat="server" Value='<%#Eval("FieldId") %>' />
                                                               <asp:HiddenField ID="hdnFieldType" runat="server" Value='<%#Eval("FieldType") %>' />
                                                                    <asp:HiddenField ID="hdnFieldValue" runat="server" Value='<%#Eval("Value")%>' />
                                                                    <asp:HiddenField ID="hdnDefCus" runat="server"  />
                                                                </li>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                         </ul>
                                      <asp:Panel ID="panel_Vaccination" runat="server" Style="display: none" CssClass="ModalPopup" Width="600">                       
                                      
                 <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">
                            &nbsp;
                        </td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header">
                                Vaccination Details</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">
                            &nbsp;
                        </td>
                        <td class="modal_bg">
                            <div style="overflow: auto; overflow-x: hidden; width: 600px; max-height: 332px;">
                                <ul id="ul">
                                                        <asp:Repeater ID="rptrVaceField" Visible="false" runat="server" OnItemDataBound="rptrVaceField_ItemDataBound">
                                                            <ItemTemplate>
                                                                <li itemid='<%#Eval("FieldId") %>' def_cus='<%#Eval("Default_Custom") %>' id="li" runat="server">
                                                                    <div id="div" align="left" runat="server">
                                                                    
                                                                        <table align="left" cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                            <tr>
                                                                                <td valign="top" align="left">
                                                                                    <div style="width: 130px">
                                                                                        <%# Eval("FieldName")%>
                                                                                    </div>
                                                                                </td>
                                                                                <td  valign="top" class="colon">
                                                                                    :
                                                                                </td>
                                                                                <td valign="top" style="width: 130px" align="right">
                                                                                   <div id="maindiv" runat="server">
                                                                                  
                                                                                   </div>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <asp:HiddenField ID="hdnFieldType" runat="server" Value='<%#Eval("FieldType") %>' />
                                                                    <asp:HiddenField ID="hdnFieldId" runat="server" Value='<%#Eval("FieldId")%>' />
                                                                    <asp:HiddenField ID="hdnDefCus" runat="server" Value='<%#Eval("Default_Custom") %>' />
                                                                </li>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                      </ul>
                            </div>
                            <div class="separator_hor">
                            </div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnvcciSave" CssClass="modalbtn_active" runat="server" 
                                            Text="Save" onclick="btnvcciSave_Click" />
                                        <asp:Button ID="btnvcciCancel" CausesValidation="false" runat="server" Text="Cancel" CssClass="modalbtn_active" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender5')" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                </table>
                                      </asp:Panel>
                                      
                                      <asp:Panel ID="panel_VaccinationEdit" runat="server" Style="display: none" CssClass="ModalPopup" Width="600">                       
                                      
                 <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">
                            &nbsp;
                        </td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header">
                                Nurse Visit Record</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">
                            &nbsp;
                        </td>
                        <td class="modal_bg">
                            <div style="overflow: auto; overflow-x: hidden; width: 540px; max-height: 332px;">
                                <ul id="ul2">
                                                        <asp:Repeater ID="rptrVaceFieldEdit"  runat="server" OnItemDataBound="rptrVaceFieldEdit_ItemDataBound">
                                                            <ItemTemplate>
                                                                <li itemid='<%#Eval("FieldId") %>' def_cus='<%#Eval("Default_Custom") %>' id="li" runat="server">
                                                                    <div id="div" align="left" runat="server">
                                                                    
                                                                        <table align="left" cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                            <tr>
                                                                                <td valign="top" align="left">
                                                                                    <div style="width: 130px">
                                                                                        <%# Eval("FieldName")%>
                                                                                    </div>
                                                                                </td>
                                                                                <td  valign="top" class="colon">
                                                                                    :
                                                                                </td>
                                                                                <td valign="top" style="width: 130px" align="right">
                                                                                   <div id="maindiv" runat="server">
                                                                                   </div>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <asp:HiddenField ID="hdnFieldType" runat="server" Value='<%#Eval("FieldType") %>' />
                                                                    <asp:HiddenField ID="hdnFieldId" runat="server" Value='<%#Eval("FieldId")%>' />
                                                                    <asp:HiddenField ID="hdnDefCus" runat="server" Value='<%#Eval("Default_Custom") %>' />
                                                                </li>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                      </ul>
                            </div>
                            <div class="separator_hor">
                            </div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnvcciUpdate" CssClass="modalbtn_active" runat="server" 
                                            Text="Save" onclick="btnvcciUpdate_Click" />
                                        <asp:Button ID="btnvcciCancelEdit" CausesValidation="false" runat="server" Text="Cancel" CssClass="modalbtn_active" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender8')" onclick="btnvcciCancelEdit_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                </table>
                                      </asp:Panel>
                                      
                                       <cc1:modalpopupextender ID="ModalPopupExtender5" runat="server" 
                                           BackgroundCssClass="Inactive" TargetControlID="ibtnVace" 
                                           PopupControlID="panel_Vaccination" Enabled="false" />
                                       <cc1:modalpopupextender ID="ModalPopupExtender8" runat="server" 
                                           BackgroundCssClass="Inactive" TargetControlID="ibtnVaceEdit" 
                                           PopupControlID="panel_VaccinationEdit" Enabled="false" />    
                                           
                                   </td>
                                </tr>
                                
                        </table>
                        
                        
                         <%--    enrollment table --%>
                                                               
                                                             <table width="100%" id="tblSchEnrInfo" runat="server" border="0" cellpadding="0" cellspacing="0" align="left" Visible="false">
                                <tr>
                                    <td align="left">
                                    
                                    <div class="heading_bevelline">School Information</div>
                                    <div class="bevel_horline"></div>
                                    <div class="clear"></div>
                                         <ul id="ul3">
                                            <asp:Repeater ID="rptrSchlInfo"  runat="server" OnItemDataBound="rptrSchlInfo_ItemDataBound" Visible="false">
                                                            <ItemTemplate>
                                                                <li itemid='<%#Eval("FieldId") %>' def_cus='<%#Eval("Default_Custom") %>' id="li" runat="server">
                                                               
                                                                
                                                                    <div id="div" align="left" runat="server">
                                                                    
                                                                        <table align="left" cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                            <tr>
                                                                                <td valign="top" align="left">
                                                                                    <div style="width: 130px" class='blue_bold'>
                                                                                    <%# Eval("FieldName")%>
                                                                                    </div>
                                                                                </td>
                                                                                <td  valign="top" class="colon">
                                                                                    :
                                                                                </td>
                                                                                <td valign="top" style="" align="right">
                                                                                   <div id="maindiv" runat="server">
                                                                                   </div>
                                                                                  <%-- <asp:Panel ID="maindiv" runat="server"></asp:Panel>--%> 
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <asp:HiddenField ID="hdnFieldType" runat="server" Value='<%#Eval("FieldType") %>' />
                                                                    <asp:HiddenField ID="hdnFieldId" runat="server" Value='<%#Eval("FieldId") %>' />
                                                                    <asp:HiddenField ID="hdnDefCus" runat="server" Value='<%#Eval("Default_Custom") %>' />
                                                                
                                                               
                                                                </li>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                         </ul>
                                      
                                    </td>
                                </tr>
                                <tr>
                                   <td>
                                    <div class="clear"></div>
                                    
                                    <div runat="server" id="divEnrinfo">
                                      <table width="100%" cellpadding="0" cellspacing="0"><tr><td class="heading_bevelline" align="left">Enrollment Information</td><td align="right"><asp:ImageButton ID="ibtnEnrInfo" CausesValidation="false" runat="server"   ImageUrl="~/App_Themes/main/images/add.png" OnClick="ibtnEnrInfo_Click"/></td>
                          <td align="right">
                          <asp:ImageButton ID="ibtnEditEnrInfo" Visible="false" CausesValidation="false" runat="server"   ImageUrl="~/App_Themes/main/images/edit.png" OnClick="ibtnEditEnrInfo_Click"/>
                          </td>
                          
                          <td align="right">
                          <asp:ImageButton ID="ibtnDelEnrInfo" Visible="false" CausesValidation="false" runat="server"   ImageUrl="~/App_Themes/main/images/delete.png" OnClick="ibtnDelEnrInfo_Click"/>
                          </td>
                          
                          </tr></table>
                                      
                                    <div class="bevel_horline"></div>
                                    <div class="clear"></div>
                                    
                                     <asp:GridView  visible="false" ID="gvEnrInfo" runat="server" HeaderStyle-CssClass="grid_header" Width="100%" RowStyle-CssClass="grid_row" AlternatingRowStyle-CssClass="grid_altrow" AutoGenerateColumns ="false"  BorderWidth="0" CellPadding="0" CellSpacing="0"
                                      OnRowDataBound="gvEnrInfo_RowDataBound"  OnRowCancelingEdit="gvEnrInfo_RowCancelingEdit"
                        OnRowEditing="gvEnrInfo_RowEditing" OnRowUpdating="gvEnrInfo_RowUpdating">
                                                   <Columns >
                                                      <asp:TemplateField HeaderText="Attendance Start Date this School Year" >
              	
                                          <ItemTemplate>
                     <asp:HiddenField ID="hdnenrid" runat="server" Value='<%#Eval("Std_Enr_Id") %>' />
                      <asp:HiddenField ID="hdnenrcode" runat="server" Value='<%#Eval("Enr_Code_Id") %>' />
                         <asp:HiddenField ID="hdnExitcode" runat="server" Value='<%#Eval("enrollname") %>' />      
                                             <asp:Label ID="lblAttStrtDateEdit" runat="server" Text='<%#Eval("Enr_Start_Date") %>'></asp:Label> 
                                             
                                                         </ItemTemplate>
                                                         <EditItemTemplate>
                                                          <asp:TextBox ID="txtAttStrtDateEdit"  CssClass="textbox_date" runat="server" Text='<%#Eval("Enr_Start_Date")%>'></asp:TextBox>       
                                              <asp:ImageButton ID="calImg2Edit" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Date Of Exit" runat="server" meta:resourcekey="calImg2Edit"/>
                                   <cc1:CalendarExtender ID="CalAddAttStartDateEdit" runat="server" PopupButtonID="calImg2Edit" TargetControlID="txtAttStrtDateEdit"  />
                                                         </EditItemTemplate>
                                                      </asp:TemplateField>
                                                       <asp:TemplateField HeaderText="Withdrawal/Exit date
">
                                                         <ItemTemplate>
                                                             <asp:Label ID="lblExitDateEdit" runat="server" Text='<%#Eval("Enr_End_Date") %>'></asp:Label> 
                                                           
                                                         </ItemTemplate>
                                                         <EditItemTemplate>
                                                          <asp:TextBox ID="txtExitDateEdit"   CssClass="textbox_date" runat="server" Text='<%#Eval("Enr_End_Date")%>'></asp:TextBox>
                                                           <asp:ImageButton ID="calImg1Edit" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Date Of Exit" runat="server" meta:resourcekey="calImg1Edit"/>
                                   <cc1:CalendarExtender ID="CalExitDateEdit" runat="server" PopupButtonID="calImg1Edit" TargetControlID="txtExitDateEdit"  ></cc1:CalendarExtender>
                                                         </EditItemTemplate>
                                                      </asp:TemplateField>
                                                      <asp:TemplateField HeaderText="Withdrawal/Exit Code" >
                                                         <ItemTemplate>
                                                          
                                                            <asp:Label ID="lblExitCodeEdit" runat="server" ></asp:Label> 
                                                         </ItemTemplate>
                                                         <EditItemTemplate>   
                    <asp:DropDownList ID="ddlExitCodeEdit" Width="140px"   runat="server"></asp:DropDownList>
                            <asp:HiddenField ID="hdnExitcodeEdit" runat="server" Value='<%#Eval("enrollname") %>' /> 
                     </EditItemTemplate>   
                                                      </asp:TemplateField>
                                                    
                                                       <asp:TemplateField HeaderText="Withdrawal/Exit reason" >
                                                         <ItemTemplate>
                                                            <asp:Label ID="lblExitReasonEdit" runat="server" Text='<%#Eval("Exit_Reason") %>'></asp:Label> 
                                                          
                                                         </ItemTemplate>
                                                          <EditItemTemplate>   
                     <asp:TextBox ID="txtExitReasonEdit"  CssClass="textbox_date" runat="server" Text='<%#Eval("Exit_Reason")%>'></asp:TextBox>
                            
                     </EditItemTemplate>   
                                                      </asp:TemplateField>
                                                    
                                                       
           
                       <asp:TemplateField HeaderText="Start Condition">   
                     <ItemTemplate>   
                     <asp:Label ID="lblStaratDate" runat="server" Text='<%#Eval("Start_Condition") %>'></asp:Label>   
                     </ItemTemplate>   
                     <EditItemTemplate>   
                     <asp:Textbox ID="txtStrtCondEdit" runat="server" Text='<%#Bind("Start_Condition") %>'></asp:Textbox>   
                            
                     </EditItemTemplate>   
                     </asp:TemplateField>
                      <asp:CommandField ShowEditButton="true" ButtonType="Image" CancelImageUrl="~/App_Themes/main/images/icon_delete.png"
                                EditImageUrl="~/App_Themes/main/images/icon_edit.png" UpdateImageUrl="~/App_Themes/main/images/icon_active.png"
                                HeaderText="Action" CausesValidation="false">
                                <ItemStyle />
                            </asp:CommandField>
                                                   </Columns>
                                                   <EmptyDataTemplate >
                                                   
                                                    <table align="center" class="grid_header"><tr ><td >No data Found</td></tr></table>
                                                   
                                                   
                                                   </EmptyDataTemplate>

                                                 </asp:GridView>
                                  
                                     <asp:Panel ID="pnlEnrInfo" runat="server" Style="display: none" CssClass="ModalPopup"
                Width="600">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">
                            &nbsp;
                        </td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header">
                               Add Enrollment Information</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">
                            &nbsp;
                        </td>
                        <td class="modal_bg">
                            <div style="overflow: auto; overflow-x: hidden; width: 540px; max-height: 332px;">
                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td>
                                           Attendance Start Date this School Year

                                        </td>
                                        <td>
                                          <asp:TextBox ID="txtAttStrtDate" runat="server" CssClass="textbox2"></asp:TextBox>
                                           <asp:ImageButton ID="calImg1" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Date Of Birth" runat="server" meta:resourcekey="calImg1"/>
                                   <cc1:CalendarExtender ID="CalAddAttStartDate" runat="server" PopupButtonID="calImg1" TargetControlID="txtAttStrtDate"  ></cc1:CalendarExtender>
                                   
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtAttStrtDate" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgDemoInfo"></asp:RequiredFieldValidator>
                                   
                                        </td>
                                    </tr>
                                    <tr>
                                       <td>
                                          Withdrawal/Exit date

                                       </td>
                                       <td>
                                         <asp:TextBox ID="txtExitdate" runat="server" CssClass="textbox2"></asp:TextBox>
                                         
                                          <asp:ImageButton ID="ImageButton1" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Date Of Birth" runat="server" meta:resourcekey="calImg1"/>
                                   <cc1:CalendarExtender ID="CalAddEndDate" runat="server" PopupButtonID="ImageButton1" TargetControlID="txtExitdate"  ></cc1:CalendarExtender>
                                   
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="txtExitdate" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgDemoInfo"></asp:RequiredFieldValidator>
                                   
                                       </td>
                                    </tr>
                                    <tr>
                                       <td>
                                         Withdrawal/Exit Code

                                       </td>
                                       <td>
                                          <asp:DropDownList ID="ddlExitCode" runat="server"></asp:DropDownList>
                                          
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlExitCode" InitialValue="0" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgDemoInfo"></asp:RequiredFieldValidator>
                                          
                                       </td>
                                    </tr>
                                     <tr>
                                       <td>
                                         Withdrawal/Exit reason

                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtExitreason" runat="server" CssClass="textbox2"></asp:TextBox>
                                       </td>
                                    </tr>
                                     <tr>
                                       <td>
                                         Start Condition 


                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtStartCond" runat="server" CssClass="textbox2"></asp:TextBox>
                                       </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="separator_hor">
                            </div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnSaveEnrInfo" CssClass="modalbtn_active" runat="server" Text="Save" OnClick="btnSaveEnrInfo_Click" ValidationGroup="vgDemoInfo"/>
                                        <asp:Button ID="btnCancelEnrInfo" CausesValidation="false" runat="server" Text="Cancel"
                                            CssClass="modalbtn_active" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender9')" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                </table>
            </asp:Panel>               
             
              <cc1:ModalPopupExtender ID="ModalPopupExtender9" runat="server" BackgroundCssClass="Inactive"
                        TargetControlID="hdnenr" PopupControlID="pnlEnrInfo" Enabled="false" /> 
                        
                         <asp:Panel ID="pnlEditEnrInfo" runat="server" Style="display: none" CssClass="ModalPopup"
                Width="600">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">
                            &nbsp;
                        </td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header">
                               Edit Enrollment Information</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">
                            &nbsp;
                        </td>
                        <td class="modal_bg">
                            <div style="overflow: auto; overflow-x: hidden; width: 540px; max-height: 332px;">
                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td>
                                           Attendance Start Date this School Year

                                        </td>
                                        <td>
                                          <asp:TextBox ID="txtEditAttStrtDate" runat="server" CssClass="textbox2"></asp:TextBox>
                                           <asp:ImageButton ID="ImageButton2" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Date Of Birth" runat="server" />
                                   <cc1:CalendarExtender ID="CalEditAttStartDate" runat="server" PopupButtonID="ImageButton2" TargetControlID="txtEditAttStrtDate"  ></cc1:CalendarExtender>
                                   
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1Edit" runat="server" ControlToValidate="txtEditAttStrtDate" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgEditEnrInfo"></asp:RequiredFieldValidator>
                                   
                                        </td>
                                    </tr>
                                    <tr>
                                       <td>
                                          Withdrawal/Exit date

                                       </td>
                                       <td>
                                         <asp:TextBox ID="txtEditExitdate" runat="server" CssClass="textbox2"></asp:TextBox>
                                         
                                          <asp:ImageButton ID="ImageButton3" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Date Of Birth" runat="server" />
                                   <cc1:CalendarExtender ID="CalEditEnddate" runat="server" PopupButtonID="ImageButton3" TargetControlID="txtEditExitdate"  ></cc1:CalendarExtender>
                                   
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator16Edit" runat="server" ControlToValidate="txtEditExitdate" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgEditEnrInfo"></asp:RequiredFieldValidator>
                                   
                                       </td>
                                    </tr>
                                    <tr>
                                       <td>
                                         Withdrawal/Exit Code

                                       </td>
                                       <td>
                                          <asp:DropDownList ID="ddlEditExitCode" runat="server" CssClass="dropdown"></asp:DropDownList>
                                          
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2Edit" runat="server" ControlToValidate="ddlEditExitCode" InitialValue="0" Display="Dynamic"  ErrorMessage="<div align='center' class='alert'>Cannot be left blank</div>" ValidationGroup="vgEditEnrInfo"></asp:RequiredFieldValidator>
                                          
                                       </td>
                                    </tr>
                                     <tr>
                                       <td>
                                         Withdrawal/Exit reason

                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtEditExitreason" runat="server" CssClass="textbox2"></asp:TextBox>
                                       </td>
                                    </tr>
                                     <tr>
                                       <td>
                                         Start Condition 


                                       </td>
                                       <td>
                                          <asp:TextBox ID="txtEditStartCond" runat="server" CssClass="textbox2"></asp:TextBox>
                                       </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="separator_hor">
                            </div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnUpdateEnrInfo" CssClass="modalbtn_active" runat="server" Text="Update" OnClick="btnUpdateEnrInfo_Click" ValidationGroup="vgEditEnrInfo"/>
                                        <asp:Button ID="btnEditCancelEnrInfo" CausesValidation="false" runat="server" Text="Cancel"
                                            CssClass="modalbtn_active" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_mdlpopEditEnrll')" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                </table>
            </asp:Panel>               
             
              <cc1:ModalPopupExtender ID="mdlpopEditEnrll" runat="server" BackgroundCssClass="Inactive"
                        TargetControlID="hdnEditenr" PopupControlID="pnlEditEnrInfo" Enabled="false" /> 
                        
                        <asp:HiddenField ID="hdnEditenr" runat="server" />
                             <asp:HiddenField ID="hdnenr" runat="server" />
                             <asp:HiddenField ID="hdnUpdate" runat="server" />
                              <asp:HiddenField ID="hdnEnrollId" runat="server"  />
                        </div>
                            </td>
                                </tr>  
                               
                                
                        </table>
                                                               
                                                               
                                                                  
                                                               <%--   enrollment table--%>
                        <%--   Table Program--%>
                     
                     
                     <table width="100%" id="tblProgram" runat="server" border="0" cellpadding="0" cellspacing="0" align="left">
                                <tr>
                                    <td align="left">
                                    
                                    <div class="heading_bevelline">
                                    
                                     <table width="100%" cellpadding="0" cellspacing="0"><tr><td class="heading_bevelline" align="left"> <asp:Label ID="lblTopHeading" runat="server"></asp:Label>Special Education</td><td align="right"><asp:ImageButton ID="imgbtnAddSpecial" CausesValidation="false" runat="server"   ImageUrl="~/App_Themes/main/images/add.png" OnClick="imgbtnAddSpecial_Click"/></td></tr></table>
                                    
                                    
                                    
                                    </div>
                                    <div class="bevel_horline"></div>
                                    <div class="clear"></div>
                                         <ul id="ul4">
                                            <asp:Repeater ID="rptrSpecEdu"  runat="server" OnItemDataBound="rptrSpecEdu_ItemDataBound">
                                                            <ItemTemplate>
                                                                <li itemid='<%#Eval("FieldId") %>'  id="li" runat="server">
                                                                    <div id="div" align="left" runat="server">
                                                                    
                                                                        <table align="left" cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                            <tr>
                                                                                <td valign="top" align="left">
                                                                                    <div style="width: 130px" class='blue_bold'>
                   <asp:Label ID="lblfldnam" runat="server" Text='<%#Eval("FieldName") %>' ></asp:Label>
                                                                                    
                                                                                    </div>
                                                                                </td>
                                                                                <td  valign="top" class="colon">
                                                                                    :
                                                                                </td>
                                                                                <td valign="top" style="width: 130px" align="right">
                                                                              <div id="maindiv" runat="server">
                                                                                   </div>  
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    
                                                                    <asp:HiddenField ID="hdnFieldId" runat="server" Value='<%#Eval("FieldId") %>' />
                                                                   <asp:HiddenField ID="hdnFieldType" runat="server" Value='<%#Eval("FieldType") %>' />
                                                                    <asp:HiddenField ID="hdnFieldValue" runat="server" Value='<%#Eval("Value")%>' />
                                                                    <asp:HiddenField ID="hdnDefCus" runat="server"  />
                                                                </li>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                         </ul>
                                      
                                    </td>
                                </tr>
                                <tr>
                                   <td>
                                    <div class="clear"></div>
                                    
                                    <div runat="server" id="div1">
                                      <table width="100%" cellpadding="0" cellspacing="0"><tr><td class="heading_bevelline" align="left"> <asp:Label ID="lblBelowHeading" runat="server"> </asp:Label>Gifted Student Information</td><td align="right"><asp:ImageButton ID="imgbtnAddGifted" CausesValidation="false" runat="server"   ImageUrl="~/App_Themes/main/images/add.png" OnClick="imgbtnAddGifted_Click"/></td></tr></table>
                                      
                                    <div class="bevel_horline"></div>
                                    <div class="clear"></div>
                                    
                                     <ul id="ul5">
                                            <asp:Repeater ID="rptrGiftProg"  runat="server" OnItemDataBound="rptrGiftProg_ItemDataBound">
                                                            <ItemTemplate>
                                                                <li itemid='<%#Eval("FieldId") %>'  id="li" runat="server">
                                                                    <div id="div" align="left" runat="server">
                                                                    
                                                                        <table align="left" cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                            <tr>
                                                                                <td valign="top" align="left">
                                                                                    <div style="width: 130px" class='blue_bold'>
                                      <asp:Label ID="lblfldnam" runat="server" Text='<%#Eval("FieldName") %>' ></asp:Label>                                            
                                                                                    </div>
                                                                                </td>
                                                                                <td  valign="top" class="colon">
                                                                                    :
                                                                                </td>
                                                                                <td valign="top" style="width: 130px" align="right">
                                                                            <%-- <%# Eval("Value")%> --%>     
                                                                            <div id="maindivgift" runat="server">
                                                                                   </div>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                   
                                                                    <asp:HiddenField ID="hdnFieldId" runat="server" Value='<%#Eval("FieldId") %>' />
                                                               <asp:HiddenField ID="hdnFieldType" runat="server" Value='<%#Eval("FieldType") %>' />
                                                                    <asp:HiddenField ID="hdnFieldValue" runat="server" Value='<%#Eval("Value")%>' />
                                                                    <asp:HiddenField ID="hdnDefCus" runat="server"  />
                                                                </li>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                         </ul>
                                         
                                         
                                         
                                         
                                          <%--panel for adding special   --%>    
                                  <asp:Panel ID="pnlAddSpec" runat="server" Style="display: none" CssClass="ModalPopup"
                Width="800">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">
                            &nbsp;
                        </td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header">
                                Add Special Education</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">
                            &nbsp;
                        </td>
                        <td class="modal_bg">
                            <div style="overflow: auto; overflow-x: hidden; width: 540px; max-height: 332px;">
                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td>
                                            <%--<asp:Panel ID="specialeducation" runat="server">--%>
                                            <table id="dtSpeicalEd" runat="server" visible="false">
               
               </table> <ul id="ul6">
                                                        <asp:Repeater ID="rptrSpecial"  runat="server" OnItemDataBound="rptrSpecial_ItemDataBound">
                                                            <ItemTemplate>
                                                                <li itemid='<%#Eval("FieldId") %>'  id="li" runat="server">
                                                                    <div id="div" align="left" runat="server">
                                                                    
                                                                        <table align="left" cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                            <tr>
                                                                                <td valign="top" align="left">
                                                                                    <div style="width: 130px">
                                                                                    
                                                                                        <%# Eval("FieldName")%>
                                                                                    </div>
                                                                                  <%--  <asp:HiddenField ID="hdnfldnametest" runat="server"  Value='<%#Eval("FieldName") %>'/>--%>
                                                                                </td>
                                                                                <td  valign="top" class="colon">
                                                                                    :
                                                                                </td>
                                                                                <td valign="top" style="width: 130px" align="right">
                                                                                   <div id="maindiv" runat="server">
                                                                                   </div>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <asp:HiddenField ID="hdnFieldType" runat="server" Value='<%#Eval("FieldType") %>' />
                                                                    <asp:HiddenField ID="hdnFieldId" runat="server" Value='<%#Eval("FieldId")%>' />
                                                                    <asp:HiddenField ID="hdnDefCus" runat="server"  />
                                                                </li>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                      </ul>
               
                                          <%--  </asp:Panel>--%>
                                            
                                            
                                                 
               
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="separator_hor">
                            </div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnSaveSpec" CssClass="modalbtn_active" runat="server" Text="Save"
                                            OnClick="btnSaveSpec_Click" />
                                        <asp:Button ID="btnCancelSpecEdu" CausesValidation="false" runat="server" Text="Cancel"
                                            CssClass="modalbtn_active" OnClick="btnCancelSpecEdu_Click" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_mdlAddSpec')" />
                                    </td>
                                </tr>
                            </table>
                            
                           
                           
                        </td>
                    </tr>
                    
                </table>
            </asp:Panel>
        <cc1:ModalPopupExtender ID="mdlAddSpec" runat="server" BackgroundCssClass="Inactive"
                        TargetControlID="hdnspec" PopupControlID="pnlAddSpec" Enabled="false" /> 
                        
             
      <%--     <table id="dtSpeicalEd" runat="server" >
               
               </table> --%>
               
                <%--panel for adding special   --%>    
               
               
               
               
               
               
               <%--panel for adding gift   --%>    
               
                <asp:Panel ID="pnlAddGiftProg" runat="server" Style="display: none" CssClass="ModalPopup"
                Width="600">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">
                            &nbsp;
                        </td>
                        <td class="modal_header_bg" valign="top">
                            <div class="modal_header">
                                Add Gifted Program Information</div>
                        </td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">
                            &nbsp;
                        </td>
                        <td class="modal_bg">
                            <div style="overflow: auto; overflow-x: hidden; width: 540px; max-height: 332px;">
                                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                    <tr>
                                        <td>
                                           <%-- <asp:Panel ID="pnlAddGiftedProgram" runat="server">--%>
                                           <%--  <table id="dtGiftAdd" runat="server" >
               
               </table>--%>      <ul id="ul7">
                                                        <asp:Repeater ID="rptrGiftforadd"  runat="server" OnItemDataBound="rptrGiftforadd_ItemDataBound">
                                                            <ItemTemplate>
                                                                <li itemid='<%#Eval("FieldId") %>'  id="li" runat="server">
                                                                    <div id="div" align="left" runat="server">
                                                                    
                                                                        <table align="left" cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                            <tr>
                                                                                <td valign="top" align="left">
                                                                                    <div style="width: 130px">
                                                                                        <%# Eval("FieldName")%>
                                                                                    </div>
                                                                                </td>
                                                                                <td  valign="top" class="colon">
                                                                                    :
                                                                                </td>
                                                                                <td valign="top" style="width: 130px" align="right">
                                                                                   <div id="maindiv" runat="server">
                                                                                   </div>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                    <asp:HiddenField ID="hdnFieldType" runat="server" Value='<%#Eval("FieldType") %>' />
                                                                    <asp:HiddenField ID="hdnFieldId" runat="server" Value='<%#Eval("FieldId")%>' />
                                                                    <asp:HiddenField ID="hdnDefCus" runat="server"  />
                                                                </li>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                      </ul>
                                           <%-- </asp:Panel>--%>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="separator_hor">
                            </div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnSaveGift" CssClass="modalbtn_active" runat="server" Text="Save"
                                            OnClick="btnSaveGift_Click" />
                                        <asp:Button ID="btncanelgift" CausesValidation="false" runat="server" Text="Cancel"
                                            CssClass="modalbtn_active" OnClick="btncanelgift_Click" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_mdlGiftProg')" />
                                    </td>
                                </tr>
                            </table>
                            
                           
                           
                        </td>
                    </tr>
                    
                </table>
            </asp:Panel>
        <cc1:ModalPopupExtender ID="mdlGiftProg" runat="server" BackgroundCssClass="Inactive"
                        TargetControlID="hdngift" PopupControlID="pnlAddGiftProg" Enabled="false" /> 
                        
             
               
              <%-- panel gift add--%>
                        <asp:HiddenField ID="hdnspec" runat="server" />
                         <asp:HiddenField ID="hdngift" runat="server" />
                        </div>
                            </td>
                                </tr>  
                               
                                
                        </table>
                     
                     
                     <%--   Table Program--%>
                        
                        </td>
                    </tr>
                </table>
                

         </td>
      </tr>
      <tr>
        <td class="viewformtab_bot">&nbsp;</td>
        <td>
            
            <table cellpadding="10" cellspacing="0" width="100%">
                <tr>
                    <td colspan="2"><div class="bevel_horline"></div></td>
                </tr>
                <tr>
                    <td align="left">
                        <asp:ImageButton ID="btnPrev" runat="server" ImageUrl="~/App_Themes/main/images/add_student_back.png" Visible="false"  OnClick="btnPrev_Click"/>
                    </td>
                    <td align="right">
                        <asp:ImageButton ID="btnNext" runat="server" ImageUrl="~/App_Themes/main/images/add_student_next.png" OnClick="btnNext_Click" />
                        <asp:Button ID="btnUpdate" runat="server" Visible="false" CssClass="save_button"
                          OnClick="btnUpdate_Click" />
                    </td>
                </tr>
            </table>
        </td>
      </tr>
   </table>
   </div>
</asp:Content>

